<h1>Welcome to CodeIgniter: Assassin8 Build v0.1!</h1>

<p>The page you are looking at is being generated dynamically by CodeIgniter.</p>

<p>If you would like to edit this page you'll find it located at:</p>
<code>system/application/views/home/welcome_message.php</code>

<p>The corresponding controller for this page is found at:</p>
<code>system/application/controllers/home.php</code>

<p>If you are exploring CodeIgniter for the very first time, you should start by reading the <a href="user_guide/">User Guide</a>.</p>

<h1>Additions made to the Assassin8 Build v0.1</h1>

<h2>Modifications to the <u>URL Helper</u>:</h2>

<p><u><strong>Note:</strong></u> The URL helper in this installation is auto-loaded by default.</p>

<p>The very first change to this build is the addition of functions to the URL helper to better locate and specify the location of the images, CSS, and JavaScript folders. These folders are located inside the <u>/resources</u> folder by default.</p>

<p>This function will return the images folder:</p>
<code>base_img_url()</code>

<p>This function will return the CSS folder.</p>
<code>base_css_url()</code>

<p>This function will return the JavaScript folder.</p>
<code>base_js_url()</code>

<p>If you placed something inside the <strong>resources</strong> folder, you can return that folder using the following function:</p>
<code>base_res_url()</code>

<p>These functions are all based on the original <strong>base_url()</strong> function. You would normally want to configure the <strong>base_url()</strong> value everytime you make a new installation inside the config file. The config file is located at:</p>
<code>system/application/config.php</code>

<p>The value of the other URL helper functions can also be changed from there.</p>

<h2>The <u>Template Library</u></h2>

<p><u><strong>Note:</strong></u> The Template Library is auto-loaded by default.</p>

<p>We found that using the Template Parser built into CodeIgniter pretty useless for our needs so we created a template library to make applying templates to pages easier.</p>

<p>Templates can be found and created inside:</p>
<code>system/application/views/templates/</code>

<p>These templates should be contained in it's own folder and should <strong>always</strong> contain two files: <u>header.php</u> and <u>footer.php</u></p>

<p>To build a view using the template library, all you have to do is call it's <strong>build</strong> function:</p>
<code>$this->template->build($view, $data, $header, $footer, $template)</code>

<!-- TODO improve on the explanation of the template library -->

<h2>Auth Library</h2>

<p>We have included the Redux Auth 2 library but made lots of improvements due to a lot of bugs found in the original.</p>

<p>One of the changes we have made that we have gotten rid of the "username" field from the database and original library, requiring the user to only input their e-mail and password for log in.</p>

<p>When making additional controllers, you can restrict a page for unregistered users by using the following function:</p>
<code>$this->auth->logged_in()</code>

<p>This function returns a boolean - TRUE for logged in, FALSE if the user is not logged in. So basically, you can use it like this:</p>
<code>
	if(!$this->auth->logged_in()) {
		redirect(base_url()); }
</code>

<p><br />Page rendered in {elapsed_time} seconds</p>